package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 告警模版表
 * </p>
 *
 * @author chenhc
 * @since 2025-02-20
 */
@Data
@TableName("warning_event")
@ApiModel("事件")
public class Event extends Field {

    @ApiModelProperty("事件id")
    @TableField(fill = FieldFill.INSERT)
    private String id;

    @ApiModelProperty("预警时间")
    private LocalDateTime warningTime;

    @ApiModelProperty("事件等级1-3")
    private int eventLevel;

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("ip地址")
    private String hostName;

    @ApiModelProperty("区域id")
    private String regionIndexCode;

    @ApiModelProperty("设备编码")
    private Integer deviceId;

    @ApiModelProperty("是否报警0否1是")
    private String isWarning;

    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("事件名称")
    private String title;
    @ApiModelProperty("事件描述")
    private String msg;
}
